﻿using System.ComponentModel.DataAnnotations;

namespace BankTransfer.Bank.Types.Types
{
    public class AccountNumber
    {
        private readonly string value;
        public string Value => value;

        public AccountNumber(string value)
        {
            if (string.IsNullOrEmpty(value))
            {
                throw new ValidationException("AccountNumber");
            }
            this.value = value;
        }
    }
}